package com.bluesky.jwf.config;

public class TemplateResourceInfo {
	private String fileName;
	private String id;

	public void load(String s, String defaultTemplate) {
		if (s == null) {
			fileName = null;
			id = null;
		} else {

			String[] ss = s.split("@");
			if (ss.length >= 1)
				fileName = ss[0];
			if (ss.length >= 2)
				id = ss[1];

		}
		if (fileName == null || fileName.equals(""))
			fileName = defaultTemplate;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
